import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 数据查看
  {
    path: '/data',
    component: Layout,
    hidden: false,
    alwaysShow: true,
    name: 'data',
    meta: {
      title: '数据查看',
      icon: 'iconfont icon-xunjianguanli',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'monitoring',
        name: 'dataMonitoring',
        meta: { title: '数据监测', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/dataMonitoring/index.vue')
      },
      {
        path: 'realTime',
        name: 'realTimeData',
        meta: { title: '实时数据', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/dataMonitoring/realTime.vue')
      },
      {
        path: 'history',
        name: 'historyData',
        meta: { title: '历史数据', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/dataMonitoring/history.vue')
      }
    ]
  }
]
